# 安装 Gitlab 依赖
yum install -y wget policycoreutils-python openssh-server postfix
# 启动 sshd、postfix（gitlab 的邮件服务）
systemctl enable sshd && systemctl start sshd && systemctl enable postfix && systemctl start postfix
# 下载并安装 Gitlab
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.0.6-ce.0.el7.x86_64.rpm
rpm -i [rpm包]
# 初始化配置
gitlab-ctl reconfigure
# 修改端口
vi /etc/gitlab/gitlab.rb
	external_url 'http://localhost:8088'
# 启动 gitlab
gitlab-ctl restart